<include file="public/header" title="推广链接" body="pore_add"/>
<include file="public/header_nav" title="推广链接" href="javascript:history.back(-1)"/>
<style type="text/css">
    .imgbox{
        width: 100%;
    }
    .imgbox img{
        display: block;
        width: 100%;
    }
    .touxing{
        position: relative;
        top: -50px;
    }
    .touxing img{
        display: block;
        width: 160px;
        height: 160px;
        border-radius: 100%;
        margin: 10px auto;
    }
    .touxing p{
        width: 100%;
        text-align: center;
        line-height: 1rem;
        font-size: .6rem;
    }
    .red{
        font-size: .8rem !important;
        color: red;
    }
    .desc{
        width: 80%;
        margin: -10px auto;
        background: #fbdfdb;
        padding: .4rem;
    }
    .desc p{
        line-height: 1rem;
        font-size: .6rem;
        text-align: center;
        margin-top: .2rem;
    }
</style>
   <div>
    <!-- 推广链接：
        <div cols="20" id="biao1">http://bjqx.qianlh.com/index.php/mobile/User/reg.html?id={$user_id} <input type="button" onClick="copyUrl2()" value="一键复制" style="padding: 5px;" /></div> -->
        <div class="imgbox">
            <img src="__STATIC__/images/haibao.png">
        </div>
        <div class="touxing">
            <img src="__STATIC__/images/haibao.png">
            <p>青青~养猪啦客服</p>
            <p class="red">邀请好友加入养猪啦</p>       
        </div>
        <div class="desc">
            <p>通过此页面邀请好友注册并关注养猪啦公众号可获得1元推广佣金</p>
            <p>邀请好友购买，购买金额每1000元还可奖15元佣金！</p>
        </div>
        <div style="margin: 0 auto;"><img style="width: 60%;margin: 10px auto;display: block;" src="../../../public/upload/qr_code/{$id}.png" width="100%" />
            <p style="width: 100%;line-height: 1rem;text-align: center;font-size: .6rem;margin-bottom: 2rem;">扫一扫，加入养猪啦</p></div>
    </div>
    
<script>    
    function copyUrl2()
    {
        var Url2=document.getElementById("biao1").innerText;
        var oInput = document.createElement('input');
        oInput.value = Url2;
        document.body.appendChild(oInput);
        oInput.select(); // 选择对象
        document.execCommand("Copy"); // 执行浏览器复制命令
        oInput.className = 'oInput';
        oInput.style.display='none';
        alert('复制成功');
    }
</script>
</html>
